import request from '../service/request.js'
import requesta from '../service/login.js'
const bastURL = 'http://47.100.39.207:9001/'
// const bastURL ='https://wy.canghan.top/api'
const testURL ='https://blog.csdn.net/male09/article/details/96596596'
const imageUrl = 'https://hjwy-1256867850.cos.ap-chengdu.myqcloud.com/image/'

export default {  
    imageUrl
}  
//登录
export async function login(Params, cb) {
  return request.post(
    `${bastURL}/wxLogin`,
    Params,
    (res) => {
      cb(res)
    }
  )
}
//不走微信，常规登录
 export async function normalLogin(params, cb){
	 return request.post(
	 		`${bastURL}/login`,
	 		params,
	 		(res) => {
	 			cb(res)
	 		}
	 ) 
 }
 
 // 普通产品详情
 export async function shopDetail(Params, cb){
 	 return request.post(
 		`${bastURL}/shopping/shop/detail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 产品详情
 export async function shopDetailTwo(Params, cb){
 	 return request.post(
 		`${bastURL}/product/detail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 // 普通产品下单
 export async function shopConfirmorder(Params, cb){
 	 return request.post(
 		`${bastURL}/shopping/confirmorder`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 普通订单支付
 // export async function easyorderpay(Params, cb){
 // 	 return request.post(
 // 		`${bastURL}/pay/easyorderpay`,
 // 		Params,
 // 		(res) =>{
 // 			cb(res)
 // 		}
 // 	 )
 // }
 
 
 //团购 
 // 团购产品列表
 export async function groupproductlist(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/groupproductlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 团购产品详情
 export async function groupproductdetail(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/groupproductdetail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 团购自提点
 export async function communitySelection(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/communitySelection`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 参团成员列表
 export async function groupmemberlist(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/groupmemberlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 团购产品下单
 export async function groupconfirmorder(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/confirmorder`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 开团
 export async function confirmorderOpenMission(Params, cb){
 	 return request.post(
 		`${bastURL}/groupbuy/confirmorderOpenMission`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 订单支付
 export async function easyorderpay(Params, cb){
 	 return request.post(
 		`${bastURL}/pay/easyorderpay`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 查询订单状态
 export async function checkeasyorderstatus(Params, cb){
 	 return request.post(
 		`${bastURL}/pay/checkeasyorderstatus`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 // 首页通知列表
 export async function homepageinfo(Params, cb){
	 return request.post(
		`${bastURL}/index/homepageinfo`,
		Params,
		(res) =>{
			cb(res)
		}
	 )
 }
 // 扫码识别二维码
 export async function sweepCode(Params, cb){
 	 return request.get(
 		`${bastURL}/easyorder/acceptcode`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取对阵图
 export async function getvsimg(Params, cb){
 	 return request.get(
 		`${bastURL}/tournament/getvsimg`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 主页悬浮提醒
 export async function getNewRepairCount(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/getNewRepairCount`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 维修人员任务列表
 export async function getRepairList(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/getRepairList`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 普通人员报修列表
 export async function submitList(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 抢单
 export async function grabOrders(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/grabOrders`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 等待确认接单按钮
 export async function ordersReceived(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/ordersReceived`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 从已接单切换为处理中状态
 export async function repairHanding(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/handIng`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 物业人员完成按钮
 export async function finishRepair(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/finish`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 普通人员完成按钮
 export async function repairOrderFinish(Params, cb){
 	 return request.get(
 		`${bastURL}/fix/finish`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 出入证登记
 export async function report(Params, cb){
 	 return request.post(
 		`${bastURL}/health/report`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取内容api/health/getcontent
 export async function getcontent(Params, cb){
 	 return request.post(
 		`${bastURL}/health/getcontent`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 首页是否能添加家庭成员
 export async function caninvite(Params, cb){
 	 return request.get(
 		`${bastURL}/account/caninvite`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 首页添加成员
 export async function invitemember(Params, cb){
 	 return request.post(
 		`${bastURL}/account/invitemember`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 打开邀请卡片
 export async function openinvitecard(Params, cb){
 	 return request.post(
 		`${bastURL}/account/openinvitecard`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 上传邀请地址
 export async function registerinviteaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/account/registerinviteaddress`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取成员列表
 export async function memberlist(Params, cb){
 	 return request.get(
 		`${bastURL}/account/memberlist`,
 		Params,
 		(res) =>{
			console.log(res)
 			cb(res)
 		}
 	 )
 }
 // 获取商城列表
 export async function shoppinglist(Params, cb){
 	 return request.get(
 		`${bastURL}/shopping/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 是否弹出红包
 export async function redpacket(Params, cb){
 	 return request.get(
 		`${bastURL}/redpacket/popup`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 领红包
 export async function redpacketOpen(Params, cb){
 	 return request.post(
 		`${bastURL}/redpacket/open`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取洗衣列表
 export async function laundrylist(Params, cb){
 	 return request.get(
 		`${bastURL}/shopping/shop/index`,
 		Params,
 		(res) =>{
 			console.log(res)
 			cb(res)
 		}
 	 )
 }
  // 下单
 export async function confirmorder(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/confirmorder`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 订单列表
 export async function buylist(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/buylist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 第三方订单列表
 export async function thirdlist(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/thirdlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 订单详情
 export async function orderdetail(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/orderdetail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 卖家订单按钮 确认接单
 export async function sellerActionProcessing(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/selleraction/processing`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 卖家订单按钮 制作完成
 export async function sellerActionDone(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/selleraction/done`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 买家订单按钮 取消订单
 export async function buyActionCancel(Params, cb){
	 console.log(Params)
 	 return request.post(
 		`${bastURL}/easyorder/buyaction/cancel`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 买家订单按钮 确认订单
 export async function buyActionFinish(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/buyaction/finish`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 店铺订单列表
 export async function sellerlist(Params, cb){
 	 return request.post(
 		`${bastURL}/easyorder/sellerlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 同意/拒绝家庭成员或者租户申请
 export async function checkmemberaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/account/checkmemberaddress`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 首页点击三个功能	请求接口
 export async function indexallow(Params, cb){
 	 return request.post(
 		`${bastURL}/index/allow`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 跳转到其他小程序
 export async function jumpprogram(Params, cb){
 	 return request.post(
 		`${bastURL}/jumpprogram`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 点击跳转小程序
export async function adrecord(Params, cb){
 	 return request.post(
 		`${bastURL}/ad/record`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获得小区,绑定小区
 export async function qrlogin(Params, cb){
	 return request.post(
		`${bastURL}/qrlogin`,
		Params,
		(res) =>{
			cb(res)
		}
	 )
 }
 // 所有小区
 export async function communityAll(Params, cb){
 	 return request.post(
 		`${bastURL}/community/listall`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获得单元楼
 export async function listdetail(Params, cb){
 	 return request.get(
 		`${bastURL}/community/listdetail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获得单元楼
 export async function listdetailTwo(Params, cb){
 	 return request.get(
 		`${bastURL}/community/listdetailv2`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 新增地址
  export async function addaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/address/add`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 修改地址
   export async function editaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/address/edit`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }

 // 获取所有地址
 export async function addresslist(Params, cb){
 	 return request.post(
 		`${bastURL}/address/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 删除地址
 export async function deleteaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/address/delete`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //设为默认地址
 export async function setdefault(Params, cb){
 	 return request.post(
 		`${bastURL}/address/setdefault`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 报修	获取标签
  export async function gettags(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/gettags`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 社区	获取标签
  export async function pottags(Params, cb){
 	 return request.post(
 		`${bastURL}/post/gettags`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 新增报修	
 export async function addrepair(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/add`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  // 测试formid
  export async function testformid(Params, cb){
 	 return request.post(
 		`${bastURL}/account/postformid`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //报修列表
 export async function fixlist(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //报修详情
 export async function fixdetail(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/detail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //报修	手动结束
  export async function fixfinish(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/finish`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //报修回复
 export async function fixreply(Params, cb){
 	 return request.post(
 		`${bastURL}/fix/reply`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 社区帖子列表
 export async function communitylist(Params, cb){
 	 return request.get(
 		`${bastURL}/post/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //发帖 回复	type: 0为发帖 1为回复
 export async function addcommunity(Params, cb){
 	 return request.post(
 		`${bastURL}/post/add`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //点赞
  export async function goodup(Params, cb){
 	 return request.post(
 		`${bastURL}/post/up`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //取消赞
  export async function nogoodup(Params, cb){
 	 return request.post(
 		`${bastURL}/post/cancelup`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //社区详情
 export async function replylist(Params, cb){
 	 return request.post(
 		`${bastURL}/post/replylist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //评论
 export async function postreply(Params, cb){
 	 return request.post(
 		`${bastURL}/post/reply`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //首页电话
 export async function phonelist(Params, cb){
 	 return request.get(
 		`${bastURL}/community/phonelist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //通知列表
 export async function noticelist(Params, cb){
 	 return request.get(
 		`${bastURL}/notice/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //@提醒人
 export async function atlist(Params, cb){
 	 return request.get(
 		`${bastURL}/post/atlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 // 传id 获取原帖/有原报修	用于通知详情
 export async function detail(Params, cb){
 	 return request.get(
 		`${bastURL}/post/detail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 //所有账单接口
 export async function billlist(Params, cb){
 	 return request.postback(
 		`${bastURL}/charge/billlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  //所有未付接口
 export async function billunpaidlist(Params, cb){
 	 return request.get(
 		`${bastURL}/charge/unpaidlist`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
  //未付总额
 export async function billunpaidtotal(Params, cb){
 	 return request.postback(
 		`${bastURL}/charge/unpaidtotal`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 //二维码
  export async function genqrcode(Params, cb){
 	 return request.post(
 		`${bastURL}/account/genqrcode`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //开门列表
 export async function doorlist(Params, cb){
 	 return request.get(
 		`${bastURL}/door/list`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //直接开门
export async function opendoor(Params, cb){
 	 return request.post(
 		`${bastURL}/door/open`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //支付
   export async function paywxpay(Params, cb){
 	 return request.post(
 		`${bastURL}/pay/wxpay`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //查看订单状态
export async function paycheckorder(Params, cb){
	return request.post(
		`${bastURL}/pay/checkorder`,
		Params,
		(res) =>{
			cb(res)
		}
	 )
 }
 
 // 获取积分处理
 // 每日登录
 export async function dailyLogin(Params, cb){
 	 return request.get(
 		`${bastURL}/point/dailyLogin`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 
 // 点击广告
 export async function clickAd(Params, cb){
 	 return request.get(
 		`${bastURL}/point/clickAd`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 购物
 export async function shopPoint(Params, cb){
 	 return request.get(
 		`${bastURL}/point/shopPoint`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 发帖子
 export async function postingsPoint(Params, cb){
 	 return request.get(
 		`${bastURL}/point/postingsPoint`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 回复
 export async function replyPoint(Params, cb){
 	 return request.get(
 		`${bastURL}/point/replyPoint`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 点赞
 export async function thumbup(Params, cb){
 	 return request.get(
 		`${bastURL}/point/thumbup`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 分享
 export async function sharePoint(Params, cb){
 	 return request.get(
 		`${bastURL}/point/sharePoint`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取总积分
 export async function getPointNum(Params, cb){
 	 return request.get(
 		`${bastURL}/point/getPointNum`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 获取总积分
 export async function pointDetail(Params, cb){
 	 return request.get(
 		`${bastURL}/point/pointDetail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 积分兑换
 export async function pointCash(Params, cb){
 	 return request.post(
 		`${bastURL}/point/pointCash`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 // 兑换商品
 
 export async function exchangeDetail(Params, cb){
 	 return request.post(
 		`${bastURL}/exchangeProduct/exchangeDetail`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 export async function exchangeProduct(Params, cb){
 	 return request.post(
 		`${bastURL}/point/exchangeProduct`,
 		Params,
 		(res) =>{
 			cb(res)
 		}
 	 )
 }
 //推荐人
 export async function checkbind(Params, cb){
 	 return request.post(
 		`${bastURL}/account/checkbind`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }

 //请求上次收货地址的接口 receiver  mobile address
 export async function historyaddress(Params, cb){
 	 return request.post(
 		`${bastURL}/address/historyaddress`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 退款: orderId: 要退款的订单id
 export async function sellerrefund(Params, cb){
 	 return request.post(
 		`${bastURL}/pay/sellerrefund`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
 // 手机号验证
 export async function checkPhone(phone,cd){
 	 if(!(/^1[3456789]\d{9}$/.test(phone))){
		 uni.showToast({
		 	title:'手机号码有误，请重填',
			icon:'none'
		 })
 	     return cd(false); 
 	 } else {
		 return cd(true)
	 }
 }
 
 
  // 球队列表
 export async function teamlist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/teamlist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 讨论列表
 export async function postlist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/postlist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 活动（接龙）列表
 export async function jllist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/jllist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 创建讨论
 export async function addpost(Params, cb){
 	 return request.post(
 		`${bastURL}/team/addpost`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 创建接龙
 export async function addjl(Params, cb){
 	 return request.post(
 		`${bastURL}/team/addjl`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 获取球队列表（创建比赛的时候）
 export async function idnamelogo(Params, cb){
 	 return request.post(
 		`${bastURL}/team/idnamelogo`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 创建比赛
 export async function createsportgame(Params, cb){
 	 return request.post(
 		`${bastURL}/team/createsportgame`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 编辑比赛
 export async function editsportgame(Params, cb){
 	 return request.post(
 		`${bastURL}/team/editsportgame`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 查看比赛
 export async function sportgamelist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/sportgamelist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 退出报名参加比赛
 export async function quitsportgame(Params, cb){
 	 return request.post(
 		`${bastURL}/team/quitsportgame`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 报名参加比赛
 export async function joinsportgame(Params, cb){
 	 return request.post(
 		`${bastURL}/team/joinsportgame`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 管理员新增球员
 export async function adminaddplayer(Params, cb){
 	 return request.post(
 		`${bastURL}/team/adminaddplayer`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 比赛详情（统计员和其他人员都用这个接口）
 export async function sportgamedetail(Params, cb){
 	 return request.get(
 		`${bastURL}/team/sportgamedetail`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 统计员记录比分
 export async function recordgame(Params, cb){
 	 return request.post(
 		`${bastURL}/team/recordgame`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 球队详情是
 export async function teamdetail(Params, cb){
 	 return request.get(
 		`${bastURL}/team/teamdetail`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 球队排行
 export async function rankinglist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/ranking`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 加入队伍
 export async function jointeam(Params, cb){
 	 return request.post(
 		`${bastURL}/team/jointeam`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 成员列表
 export async function teamMemberlist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/memberlist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 审核队员申请
 export async function approvemember(Params, cb){
 	 return request.post(
 		`${bastURL}/team/approvemember`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 退出球队
 export async function quitteam(Params, cb){
 	 return request.post(
 		`${bastURL}/team/quitteam`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 任命权限
 export async function appointmember(Params, cb){
 	 return request.post(
 		`${bastURL}/team/appointmember`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
 // -----------------------------------------------------------------------------------------

  // 创建球队
 export async function createteam(Params, cb){
 	 return request.post(
 		`${bastURL}/team/createteam`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 修改球队
 export async function editteam(Params, cb){
 	 return request.post(
 		`${bastURL}/team/editteam`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 获取精彩片段
 export async function highlightlist(Params, cb){
 	 return request.post(
 		`${bastURL}/team/highlightlist`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
  // 添加精彩片段
 export async function addhighlight(Params, cb){
 	 return request.post(
 		`${bastURL}/team/addhighlight`,
 		Params,
 		(res) =>{
 			cb&&cb(res)
 		}
 	 )
 }
 // 是否加入球赛
export async function isjoingame(Params, cb){
	 return request.post(
		`${bastURL}/team/isjoingame`,
		Params,
		(res) =>{
			cb&&cb(res)
		}
	 )
}
// 换队
export async function switchteam(Params, cb){
	return request.post(
	 `${bastURL}/team/switchteam`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 暂停比赛
export async function changepausestatus(Params, cb){
	return request.post(
	 `${bastURL}/team/changepausestatus`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 获取上传报名信息
export async function getapplyinfo(Params, cb){
	return request.post(
	 `${bastURL}/team/getapplyinfo`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 联赛列表
export async function tournamentList(Params, cb){
	return request.post(
	 `${bastURL}/tournament/list`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 联赛详情排行
export async function tournamentRanklist(Params, cb){
	return request.post(
	 `${bastURL}/tournament/ranklist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 球队列表
export async function tournamentTeamlist(Params, cb){
	return request.post(
	 `${bastURL}/tournament/teamlist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 联赛详情比赛
export async function tournamentSportgamelist(Params, cb){
	return request.post(
	 `${bastURL}/tournament/sportgamelist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 联赛详情数据
export async function tournamentRanking(Params, cb){
	return request.post(
	 `${bastURL}/tournament/ranking`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 联赛详情动态
export async function tournamentPostlist(Params, cb){
	return request.post(
	 `${bastURL}/tournament/postlist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 看是否注册身份
export async function hasregister(Params, cb){
	return request.post(
	 `${bastURL}/tournament/hasregister`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 查看联赛队成员
export async function tournamentMemberlist(Params, cb){
	return request.post(
	 `${bastURL}/tournament/memberlist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 注册身份
export async function registermember(Params, cb){
	return request.post(
	 `${bastURL}/tournament/registermember`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 撤销注册身份
export async function unregistermember(Params, cb){
	return request.post(
	 `${bastURL}/tournament/unregistermember`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 获取楼层列表
export async function floorlist(Params, cb){
	return request.post(
	 `${bastURL}/index/floorlist`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 获取商品列表
export async function floordetail(Params, cb){
	return request.post(
	 `${bastURL}/index/floordetail`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 请求推荐二维码的接口
export async function shoprecommendqr(Params, cb){
	return request.post(
	 `${bastURL}/account/shoprecommendqr`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 创建店铺
export async function createStore(Params, cb){
	return request.post(
	 `${bastURL}/shopping/create`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 获取id
export async function findbycode(Params, cb){
	return request.post(
	 `${bastURL}/easyorder/findbycode`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 
export async function voicecontrol(Params, cb){
	return request.post(
	 `${bastURL}/team/voicecontrol`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}
// 撤销识别语音操作
export async function undovoicecontrol(Params, cb){
	return request.post(
	 `${bastURL}/team/undovoicecontrol`,
	 Params,
	 (res) =>{
		 cb&&cb(res)
	 }
	)
}